#ifndef COLLISION_H
#define COLLISION_H


#include "Player.h"
#include "Projectile.h"
#include "Boss.h"
#include <SFML/Audio.hpp>

class Player;
class Projectile;
class Collision
{
public:
	//Constructeur
	Collision();


	void detectCollision(Player player1, Player player2);
	void detectCollisionBoss(Player &player, Boss &boss);
	bool detectTouche(Projectile &projectile, Player player);
	bool getContact();
	void playCollisionBoss();


private:
	bool contact;
	sf::SoundBuffer bufferCollisionBoss;
	sf::Sound soundCollisionBoss;
};

#endif
